package com.medicine.hbp.ui;
import android.view.View;
import android.view.View.OnClickListener;

import com.medicine.hbp.base.BaseActivity;
import com.medicine.hbp.uitl.ToastUtil;
import com.medicine.hbp.R;

/**
 * 举报接口
 */
public class ReportActivity extends BaseActivity{
	@Override
	public void setRootView() {
		super.setRootView();
		setContentView(R.layout.activity_report);
	}
	@Override
	public void initWidget() {
		super.initWidget();
		initTop();
	}
	@Override
	public void widgetClick(View v) {
		super.widgetClick(v);
	}
	private void initTop() {
		TopView topview = (TopView) findViewById(R.id.topview);
		topview.setTitle("标签列表");
		topview.setTitleColor(getResources().getColor(R.color.white));
		topview.setLeftVisibility(View.GONE);
		topview.setLeftVisibilityExit(View.VISIBLE);
		topview.setLeftImageResource(R.drawable.leftarrow);
		topview.setRightVisibility(View.GONE);
		topview.setRightTxtVisibility(View.VISIBLE);
		topview.setRightTitle("提交");
		topview.setRightTitleColor(getResources().getColor(R.color.title_color));
		topview.setLeftOnClickExit(new OnClickListener() {
			@Override
			public void onClick(View arg0) {
				finish();
			}
		});
		topview.setTextRightOnClick(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				ToastUtil.showShort(aty, "举报成功");
				finish();
			}
		});
	}
}
